

import request from '@/utils/request'

const userBaseUrl = process.env.VUE_APP_CONTENXT_PATH + "/chooseClass";


export function findChooseClassInfo(form) {
    return request({
        url: userBaseUrl + '/byUserId',
        method: 'get',
        params: {
            userId: form.id,
            relName: form.realname
        }
    })
}


export function submitClassInfo(data) {
    return request({
        url: userBaseUrl + '/submitChooseClassInfo',
        method: 'post',
        data: data
    })
}

export function findAllClassInfo() {
    return request({
        url: userBaseUrl + '/findAllClassInfo',
        method: 'get',
        params: {},
    })
}


export function deleteClassInfo(id) {
    return request({
        url: userBaseUrl + '/delete',
        method: 'get',
        params: {
            id: id
        },
    })
}



